import * as apiLogin from  './login'
import * as apiHome from  './home'
import * as apiTopic from './topic'
import * as apiArticle from './article'
import * as apiComment from './comment'
import * as apiReviewer from './reviewer'
import * as apiKeyword from './keyword'
import * as apiWarning from './warning'
import * as apiResult from './result'




const apiObj = {
  apiLogin,
  apiHome,
  apiTopic,
  apiArticle,
  apiComment,
  apiReviewer,
  apiKeyword,
  apiWarning,
  apiResult
}
const install = function (Vue) {
  if (install.installed) return
  install.installed = true
  Object.defineProperties(Vue.prototype, {
    $fetch: {
      get() {
        return apiObj
      }
    }
  })
}
export default {
  install
}
